package com.qfan.mybatisflexdemo.domain;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Table("tb_account")
public class Account {

//    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    @Id(keyType = KeyType.Auto)
    private Long id;
    private String userName;
    private Integer age;
    private LocalDateTime birthday;
}
